// 这里写自己独有的特定的逻辑
import { mMixins } from '@ny-ui' // 导入基类

// 集成基类
const customerInfoBase = mMixins.customerInfoBase

class customerInfoClass extends customerInfoBase {
  private static instance: customerInfoClass | null = null

  // 私有构造函数
  private constructor() {
    super() // 调用基类构造函数
  }

  // 获取单例实例
  public static getInstance(): customerInfoClass {
    if (!customerInfoClass.instance) {
      customerInfoClass.instance = new customerInfoClass()
    }
    return customerInfoClass.instance
  }

  // 重写 sayHi 方法
  public sayHi() {
    console.log('你好！这是重写的 sayHi 方法。')
  }
}

// 导出单例实例
const instance = customerInfoClass.getInstance()
export default instance
